home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update16.zoo / gcc-2.0 / Makefile < prev    next >
Encoding:
Makefile  |  1992-03-06  |  17.6 KB  |  486 lines

  1. # Makefile for GNU C CROSS compiler for the atariST/TT series hosted
  2. #  on a Sun-Sparc host (tested only under SunOS 4.0.3)
  3. #
  4.  
  5. # Makefile for GNU C compiler.
  6. #   Copyright (C) 1987 Free Software Foundation, Inc.
  7.  
  8. #This file is part of GNU CC.
  9.  
  10. #GNU CC is distributed in the hope that it will be useful,
  11. #but WITHOUT ANY WARRANTY.  No author or distributor
  12. #accepts responsibility to anyone for the consequences of using it
  13. #or for whether it serves any particular purpose or works at all,
  14. #unless he says so in writing.  Refer to the GNU CC General Public
  15. #License for full details.
  16.  
  17. #Everyone is granted permission to copy, modify and redistribute
  18. #GNU CC, but only under the conditions described in the
  19. #GNU CC General Public License.   A copy of this license is
  20. #supposed to have been given to you along with GNU CC so you
  21. #can know your rights and responsibilities.  It should be in a
  22. #file named COPYING.  Among other things, the copyright notice
  23. #and this notice must be preserved on all copies.
  24.  
  25. .NOEXPORT: # This tells GNU Make version 3
  26.        # not to put all the variables in the environment.
  27.  
  28. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  29. CROSSBIN = $(CROSSDIR)/bin
  30. CROSSLIB = $(CROSSDIR)/lib
  31. CROSSINC = $(CROSSDIR)/include
  32. GCC_INCLUDE_DIR = $(CROSSINC)
  33. GPLUSPLUS_INCLUDE_DIR = $(CROSSDIR)/g++-inc
  34.  
  35. CFLAGS =  -O -DCROSSATARI=1 -I./config -I.
  36. # host's cc
  37. CC = /bin/cc
  38.  
  39. # OLDCC should not be the GNU C compiler.
  40. BISON = bison
  41. BISONFLAGS =
  42. AR = ar
  43. SHELL = /bin/sh
  44.  
  45. bindir = $(CROSSBIN)
  46. libdir = $(CROSSLIB)
  47.  
  48. # These are what you would need on HPUX:
  49. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  50. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  51. # bites whenever tree.def, rtl.def or machmode.def is included
  52. # (ie., on every source file).
  53. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  54. # For CCLIBFLAGS you might want to specify the switch that
  55. # forces only 68000 instructions to be used.
  56.  
  57. # If you are making gcc for the first time, and if you are compiling it with
  58. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  59. # of the standard libraries (as is true for HP/UX or Genix),
  60. # then get alloca.c from GNU Emacs and un-comment the following line:
  61. # ALLOCA = alloca.o
  62.  
  63. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  64. # CLIB= -lPW
  65.   
  66. # If your system's malloc() routine fails for any reason (as it does on
  67. # certain versions of Genix), try getting the files
  68. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  69. # MALLOC = malloc.o
  70.  
  71. # If you are running GCC on an Apollo, you will need this:
  72. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  73.  
  74. # Change this to a null string if obstacks are installed in the
  75. # system library.
  76. OBSTACK=obstack.o
  77.  
  78. # Dependency on obstack, alloca, malloc or whatever library facilities
  79. # are not installed in the system libraries.
  80. LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
  81.  
  82. # How to link with both our special library facilities
  83. # and the system's installed libraries.
  84. LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  85.  
  86. DIR = ../gcc
  87.  
  88. # Object files of CC1.
  89. # Language-specific object files for C.
  90. C_OBJS = c-parse.o c-lang.o \
  91.    c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
  92.  
  93. # Language-specific object files for C++.
  94. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  95.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  96.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  97.    cp-class.o cp-init.o cp-method.o cp-except.o \
  98.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  99.    $(CPLUS_INPUT) cp-spew.o c-common.o
  100.  
  101. # Language-independent object files.
  102. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  103.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  104.  rtl.o print-rtl.o rtlanal.o dbxout.o sdbout.o dwarfout.o emit-rtl.o \
  105.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  106.  regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
  107.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  108.  insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  109.  insn-attrtab.o aux-output.o
  110.  
  111. GCC_PASSES=gcc cc1 cpp
  112.  
  113. # Files to be copied away after each stage in building.
  114. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  115.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  116.  insn-attr.h insn-attrtab.c \
  117.  stamp-flags stamp-config stamp-codes \
  118.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  119.  stamp-attr stamp-attrtab \
  120.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  121.  genattrtab genattr \
  122.  $(GCC_PASSES) $(EXTRA_PARTS) gcc-cross cccp cc1plus cc1obj enquire \
  123.  protoize unprotoize specs collect2
  124.  
  125. # Header files that are made available to programs compiled with gcc.
  126. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  127.  
  128. # If you want to recompile everything, just do rm *.o.
  129. # CONFIG_H = config.h tm.h
  130. CONFIG_H =
  131. RTL_H = rtl.h rtl.def machmode.h machmode.def
  132. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  133. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  134.  
  135. ALL =  gcc cc1 cpp
  136.  
  137. all: $(ALL)
  138.  
  139. compilations: ${OBJS}
  140.  
  141. gcc: gcc.o version.o $(LIBDEPS)
  142.     $(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
  143. # Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
  144.     mv gccnew gcc
  145.  
  146. gcc.o: gcc.c $(CONFIG_H)
  147.     $(CC) $(CFLAGS) -c -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" \
  148. -DDEFAULT_TARGET_MACHINE=\"atariST\" gcc.c
  149.  
  150. cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
  151.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
  152.  
  153. cc1+: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  154.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1+ $(CPLUS_OBJS) $(OBJS) $(LIBS)
  155.  
  156. cc1o: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  157.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1o $(OBJC_OBJS) $(OBJS) $(LIBS)
  158.  
  159. # C-language specific files.
  160.  
  161. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  162.     $(CC) $(CFLAGS) -c c-parse.c
  163. c-parse.c c-parse.h: c-parse.y
  164.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  165.  
  166. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  167. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  168. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  169. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  170.     input.h flags.h
  171. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  172. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  173.  
  174. # C++ language specific files.
  175.  
  176. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  177.     $(CC) -c $(CFLAGS) cp-parse.c
  178.  
  179. cp-parse.c cp-parse.h : cp-parse.y
  180.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  181.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  182.  
  183. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  184.    cp-parse.h flags.h
  185. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  186.    cp-parse.h cp-input.c flags.h
  187. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  188.   cp-lex.h cp-decl.h stack.h
  189. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  190.   cp-lex.h cp-decl.h
  191. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  192. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  193. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  194.     cp-class.h flags.h
  195. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  196.     flags.h
  197. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  198. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  199. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  200. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  201. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  202. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  203. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  204. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  205. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  206.   expr.h insn-codes.h
  207. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  208. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  209. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  210.  
  211. # Objectionable C language specific files.
  212.  
  213. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  214.    c-tree.h input.h flags.h objc-actions.h
  215.     $(CC) $(CFLAGS) -c objc-parse.c
  216. objc-parse.c : objc-parse.y
  217.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  218.  
  219. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  220.    flags.h objc-actions.h
  221.  
  222. # A file used by all variants of C.
  223.  
  224. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  225.  
  226.  
  227. # Language-independent files.
  228. dumpvers: dumpvers.c
  229.  
  230. version.o: version.c
  231. obstack.o: obstack.c
  232.  
  233. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  234. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  235. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  236. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  237. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h insn-attr.h
  238.  
  239. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  240.  
  241. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  242. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  243.  
  244. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  245.    insn-codes.h expr.h hard-reg-set.h regs.h
  246. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  247.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  248.    recog.h output.h
  249. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  250.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  251. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  252.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  253. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  254.    insn-flags.h
  255. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  256.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  257. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  258.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  259. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  260.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  261. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  262.    insn-config.h reload.h gstab.h
  263. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  264.    insn-config.h reload.h
  265. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  266.    insn-config.h reload.h output.h
  267. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  268.    regs.h insn-config.h insn-codes.h real.h expr.h
  269.  
  270. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  271.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  272.  
  273. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  274.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  275. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  276.  
  277. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  278.    insn-config.h recog.h
  279. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  280.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  281. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  282.    integrate.h regs.h flags.h expr.h loop.h
  283. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  284.    basic-block.h regs.h hard-reg-set.h output.h
  285. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  286.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  287.    basic-block.h recog.h real.h
  288. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  289.    basic-block.h regs.h insn-config.h recog.h 
  290. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  291.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  292. global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h  \
  293.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  294.  
  295. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  296.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  297. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  298.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  299.    basic-block.h recog.h output.h
  300. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  301.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  302. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  303.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  304.    flags.h output.h
  305. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  306.    flags.h insn-config.h insn-attr.h
  307. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  308.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  309.    hard-reg-set.h insn-codes.h gstab.h
  310. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  311.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  312.    insn-flags.h insn-codes.h real.h
  313. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  314.    regs.h hard-reg-set.h flags.h insn-config.h
  315.    
  316. aux-output.o : aux-output.c $(CONFIG_H) \
  317.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  318.    insn-flags.h output.h insn-attr.h insn-codes.h
  319.  
  320.  
  321. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  322.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  323.   insn-attr.h insn-attrtab.c
  324.  
  325. insn-config.h : md genconfig
  326.     ./genconfig md > tmp-insn-config.h
  327.     ./move-if-change tmp-insn-config.h insn-config.h
  328.  
  329. insn-flags.h : md genflags
  330.     ./genflags md > tmp-insn-flags.h
  331.     ./move-if-change tmp-insn-flags.h insn-flags.h
  332.  
  333. insn-codes.h : md gencodes
  334.     ./gencodes md > tmp-insn-codes.h
  335.     ./move-if-change tmp-insn-codes.h insn-codes.h
  336.  
  337. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  338.     $(CC) $(CFLAGS) -c insn-emit.c
  339.  
  340. insn-emit.c : md genemit
  341.     ./genemit md > tmp-insn-emit.c
  342.     ./move-if-change tmp-insn-emit.c insn-emit.c
  343.  
  344. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  345.     $(CC) $(CFLAGS) -c insn-recog.c
  346.  
  347. insn-recog.c : md genrecog
  348.     ./genrecog md > tmp-insn-recog.c
  349.     ./move-if-change tmp-insn-recog.c insn-recog.c
  350.  
  351. insn-extract.o : insn-extract.c $(RTL_H)
  352.     $(CC) $(CFLAGS) -c insn-extract.c
  353.  
  354. insn-extract.c : md genextract
  355.     ./genextract md > tmp-insn-extract.c
  356.     ./move-if-change tmp-insn-extract.c insn-extract.c
  357.  
  358. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  359.     $(CC) $(CFLAGS) -c insn-peep.c
  360.  
  361. insn-peep.c : md genpeep
  362.     ./genpeep md > tmp-insn-peep.c
  363.     ./move-if-change tmp-insn-peep.c insn-peep.c
  364.  
  365. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  366.     $(CC) $(CFLAGS) -c insn-output.c
  367.  
  368. insn-output.c : md genoutput
  369.     ./genoutput md > tmp-insn-output.c
  370.     ./move-if-change tmp-insn-output.c insn-output.c
  371.  
  372. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  373.      insn-attr.h insn-config.h
  374.     $(CC) $(CFLAGS) -c insn-attrtab.c
  375.  
  376. insn-attr.h: md genattr
  377.     ./genattr md > tmp-attr.h
  378.     ./move-if-change tmp-attr.h insn-attr.h
  379.  
  380. insn-attrtab.c: md genattrtab
  381.     ./genattrtab md > tmp-attrtab.c
  382.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  383.  
  384. # Now the programs that generate those files.
  385.  
  386. genconfig : genconfig.o rtl.o $(LIBDEPS)
  387.     $(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
  388.  
  389. genconfig.o : genconfig.c $(RTL_H)
  390.     $(CC) $(CFLAGS) -c genconfig.c
  391.  
  392. genflags : genflags.o rtl.o $(LIBDEPS)
  393.     $(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
  394.  
  395. genflags.o : genflags.c $(RTL_H)
  396.     $(CC) $(CFLAGS) -c genflags.c
  397.  
  398. gencodes : gencodes.o rtl.o $(LIBDEPS)
  399.     $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
  400.  
  401. gencodes.o : gencodes.c $(RTL_H)
  402.     $(CC) $(CFLAGS) -c gencodes.c
  403.  
  404. genemit : genemit.o rtl.o $(LIBDEPS)
  405.     $(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
  406.  
  407. genemit.o : genemit.c $(RTL_H)
  408.     $(CC) $(CFLAGS) -c genemit.c
  409.  
  410. genrecog : genrecog.o rtl.o $(LIBDEPS)
  411.     $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
  412.  
  413. genrecog.o : genrecog.c $(RTL_H)
  414.     $(CC) $(CFLAGS) -c genrecog.c
  415.  
  416. genextract : genextract.o rtl.o $(LIBDEPS)
  417.     $(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
  418.  
  419. genextract.o : genextract.c $(RTL_H)
  420.     $(CC) $(CFLAGS) -c genextract.c
  421.  
  422. genpeep : genpeep.o rtl.o $(LIBDEPS)
  423.     $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
  424.  
  425. genpeep.o : genpeep.c $(RTL_H)
  426.     $(CC) $(CFLAGS) -c genpeep.c
  427.  
  428. genoutput : genoutput.o rtl.o $(LIBDEPS)
  429.     $(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
  430.  
  431. genoutput.o : genoutput.c $(RTL_H)
  432.     $(CC) $(CFLAGS) -c genoutput.c
  433.  
  434. genattr : genattr.o rtl.o $(LIBDEPS)
  435.     $(CC) $(CFLAGS) $(LDFLAGS) -o genattr \
  436.      genattr.o rtl.o $(LIBS)
  437.  
  438. genattr.o : genattr.c $(RTL_H) config.h
  439.     $(CC) -c $(CFLAGS) genattr.c
  440.  
  441. genattrtab : genattrtab.o rtl.o rtlanal.o $(LIBDEPS)
  442.     $(CC) $(CFLAGS) $(LDFLAGS) -o genattrtab \
  443.      genattrtab.o rtl.o rtlanal.o $(LIBS)
  444.  
  445. genattrtab.o : genattrtab.c $(RTL_H) config.h insn-config.h
  446.     $(CC) -c $(CFLAGS) genattrtab.c
  447.  
  448. # Making the preprocessor
  449. cpp: cccp
  450.     -rm -f cpp
  451.     ln cccp cpp
  452. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  453.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  454. cexp.o: cexp.c
  455. cexp.c: cexp.y
  456.     $(BISON) -o cexp.c cexp.y
  457. cccp.o: cccp.c pcp.h $(CONFIG_H)
  458.     $(CC) $(CFLAGS) -DGCC_INCLUDE_DIR=\"$(GCC_INCLUDE_DIR)\" \
  459.           -DGPLUSPLUS_INCLUDE_DIR=\"$(GPLUSPLUS_INCLUDE_DIR)\" \
  460.       -DCROSSINC=\"$(CROSSINC)\" -c cccp.c
  461.  
  462. # gnulib is not deleted because deleting it would be inconvenient
  463. # for most uses of this target.
  464. clean:
  465.     -rm -f *.o *.oo $(STAGESTUFF)
  466.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  467.     -rm -f core
  468.  
  469. # Get rid of every file that's generated from some other file (except INSTALL).
  470. realclean: clean
  471.     -rm -f $(ALL)
  472.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  473.     -rm -f errs gnulib TAGS 
  474.     -rm -f core report
  475.     -rm -f internals internals-* internals.?? internals.??s
  476.  
  477. # Copy the files into directories where they will be run.
  478. install: all
  479.     cp cc1 $(libdir)/gcc-cc1
  480.     cp cpp $(libdir)/gcc-cpp
  481.     cp gcc $(bindir)/cgcc
  482.  
  483. force:
  484. #In GNU Make, ignore whether `stage*' exists.
  485. .PHONY: clean realclean
  486.